package org.ushio.nchu_22201402.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.ushio.common_module.entity.ComplaintRecord;
import org.ushio.nchu_22201402.Foen.Admin_CSFoen;

import java.util.List;

@RestController
@CrossOrigin
@RequestMapping("/AdminComplaint")
public class Admin_ComplaintController {
    @Autowired
    private Admin_CSFoen adminCSFoen;
    @GetMapping("/ListAllComplaint")
    List<ComplaintRecord> ListAllComplaint(){
        return adminCSFoen.ListAllComplaint();
    }
}
